import {Service} from "adajs";
import User from "./../../../lib/user";

class CourseService extends Service {
    defaultData() {
        return {
            admin: User.isAdmin(),
            list: []
        }
    }

    onupdate(current, {list}) {
        current.list = list;
    }
}

export default CourseService;